import { default as request, cloud } from '@/framework/utils/request'

export default ({
  getAssessmentRecords(data) {
    return request({
      url: `${cloud.investment}/assessmentRecords/list`,
      method: 'post',
      data
    })
  },
  getClueResearch(data) {
    return request({
      url: `${cloud.investment}/workAnalyse/clueResearch`,
      method: 'post',
      data
    })
  },
  getScoreRankingList(data) {
    return request({
      url: `${cloud.investment}/scoreRanking/list`,
      method: 'post',
      data
    })
  },
  getOneGroupScoringRulesDay(data) {
    return request({
      url: `${cloud.investment}/groupScoringRulesDay/getOne`,
      method: 'post',
      data
    })
  },
  saveGroupScoringRulesDay(data) {
    return request({
      url: `${cloud.investment}/groupScoringRulesDay/save`,
      method: 'post',
      data
    })
  },
  updataGroupScoringRulesDay(data) {
    return request({
      url: `${cloud.investment}/groupScoringRulesDay/updata`,
      method: 'post',
      data
    })
  },
  delAssessmentRecords(data) {
    return request({
      url: `${cloud.investment}/assessmentRecords/delete`,
      method: 'get',
      params: data
    })
  },
  exportScoreRankingList(data) {
    return request({
      url: `${cloud.investment}/scoreRanking/export`,
      method: 'post',
      data,
      responseType: 'arraybuffer'
    })
  },
  saveGroupScoringRules(data) {
    return request({
      url: `${cloud.investment}/groupScoringRules/save`,
      method: 'post',
      data
    })
  },
  updataGroupScoringRules(data) {
    return request({
      url: `${cloud.investment}/groupScoringRules/updata`,
      method: 'post',
      data
    })
  },
  getOneGroupScoringRules(data) {
    return request({
      url: `${cloud.investment}/groupScoringRules/getOne`,
      method: 'get',
      params:data
    })
  },
  getAssessmentLog(data) {
    return request({
      url: `${cloud.investment}/scoreRanking/getAssessmentLog`,
      method: 'get',
      params:data
    })
  },
})
